package com.tms.project.tms.score.mapper;

import java.util.List;
import com.tms.project.tms.score.domain.Score;
import com.tms.project.tms.score.domain.ScoreDetailVO;
import com.tms.project.tms.score.domain.ScoreVO;
import org.apache.ibatis.annotations.Param;

/**
 * tmsMapper接口
 * 
 * @author xyl
 * @date 2021-03-24
 */
public interface ScoreMapper 
{
    /**
     * 查询tms
     * 
     * @param scoreId tmsID
     * @return tms
     */
    public Score selectScoreById(Long scoreId);

    /**
     * 查询tms列表
     * 
     * @param score tms
     * @return tms集合
     */
    public List<Score> selectScoreList(Score score);

    /**
     * 新增tms
     * 
     * @param score tms
     * @return 结果
     */
    public int insertScore(Score score);

    /**
     * 修改tms
     * 
     * @param score tms
     * @return 结果
     */
    public int updateScore(Score score);

    /**
     * 删除tms
     * 
     * @param scoreId tmsID
     * @return 结果
     */
    public int deleteScoreById(Long scoreId);

    /**
     * 批量删除tms
     * 
     * @param scoreIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteScoreByIds(String[] scoreIds);

    List<ScoreVO> selectScoreVOList(Score score);

    List<ScoreDetailVO> selectScoreDetailVoList(@Param("type") int type,@Param("teacherRecordId") Integer teacherRecordId);
}
